<template>
	<view class="wrap">
		<up-sticky bgColor="#fff">
			<up-tabs @change="handleTab" :list="list"
				itemStyle="width:50%;height:80rpx;border-top:2rpx solid #E1E1E1;border-right:2rpx solid #E1E1E1;"
				lineWidth="90rpx" lineHeight="2rpx" lineColor="#FF47AB" activeStyle="color:#222222;font-size:30rpx"
				inactiveStyle="color:#999999;font-size:30rpx"></up-tabs>
		</up-sticky>
		<view class="wrap-list">
			<view class="wrap-list-item" @click="goDetail">
				<view class="wrap-list-item-t align-center">
					<up-image src="/static/images/agreeBg.png" width="120rpx" height="120rpx" :radius="6"></up-image>
					<view class="wrap-list-item-t-r">
						<view class="user-name">
							昵称
						</view>
					</view>
				</view>
				<view class="wrap-list-item-tips align-center">
					<view class="wrap-list-item-tips-item align-justify-center">
						<view class="wrap-list-item-tips-item-sure"></view>
						实名
					</view>
					<view class="wrap-list-item-tips-item align-justify-center">
						<view class="wrap-list-item-tips-item-sure"></view>
						实名
					</view>
					<view class="wrap-list-item-tips-item align-justify-center">
						<view class="wrap-list-item-tips-item-sure"></view>
						实名
					</view>
					<view class="wrap-list-item-tips-item align-justify-center">
						<view class="wrap-list-item-tips-item-sure"></view>
						实名
					</view>
				</view>
				<view class="wrap-list-item-c align-center">
					<view class="wrap-list-item-c-item">
						天津南开
					</view>
					<view class="wrap-list-item-c-item">
						1990年
					</view>
					<view class="wrap-list-item-c-item">
						自由职业
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		useUserStore
	} from '@/store'
	import {
		ref,
		reactive,
		computed,
		getCurrentInstance
	} from "vue"

	const list = ref([{
		name: '待相约'
	}, {
		name: '未同意'
	}])

	const handleTab = (val) => {
		console.log(val)
	}
	
	const goDetail = () => {
		uni.navigateTo({
			url:'/pages/home/detail?router=waitingMeet'
		})
	}
</script>

<style lang="scss" scoped>
	.wrap {
		&-list {
			padding: 30rpx;
			box-sizing: border-box;
		
			&-item {
				margin-bottom: 30rpx;
				padding: 40rpx;
				box-sizing: border-box;
				background-color: #ffffff;
				border-radius: 12rpx 12rpx 12rpx 12rpx;
				&-t {
					&-r {
						margin-left: 20rpx;
		
						.user-name {
							font-size: 34rpx;
							color: #222222;
							font-weight: bold;
						}
					}
				}
		
				&-c {
					font-size: 26rpx;
					color: #444444;
		
					&-item {
						margin-right: 16rpx;
						padding: 10rpx 14rpx;
						box-sizing: border-box;
						background-color: #F3F3F3;
						border-radius: 4rpx 4rpx 4rpx 4rpx;
					}
				}
		
				&-tips {
					margin: 30rpx 0 20rpx 0;
		
					&-item {
						width: 82rpx;
						height: 34rpx;
						margin-right: 16rpx;
						background-color: #57EE91;
						font-size: 22rpx;
						color: #ffffff;
						border-radius: 4rpx 4rpx 4rpx 4rpx;
		
						&-sure {
							width: 22rpx;
							height: 22rpx;
							margin-right: 4rpx;
							background: url('/static/images/sure.png') center/cover no-repeat;
						}
					}
				}
			}
		}
	}
</style>